using MediatR;
using B.S.RbacData.ErrorCode;
using System.ComponentModel.DataAnnotations;

namespace SupplierCustomerManagement.Write.API.Applications.Commands.attachments
{
    /// <summary>
    /// 更新附件信息命令
    /// </summary>
    public class UpdateAttachmentCommand : IRequest<ApiResult<bool>>
    {
        /// <summary>
        /// 附件ID
        /// </summary>
        [Required(ErrorMessage = "附件ID不能为空")]
        public int Id { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500, ErrorMessage = "备注长度不能超过500个字符")]
        public string? Remarks { get; set; }

        /// <summary>
        /// 更新人ID
        /// </summary>
        public int? UpdatedBy { get; set; }
    }
} 